# Contributor: Andrew Hills <ahills@ednos.net>
# Contributor: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
# Maintainer: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
pkgname=zathura-pdf-poppler
pkgver=0.3.3
pkgrel=0
pkgdesc="Poppler plugin adds PDF support to zathura"
options="!check" # No testsuite
url="https://pwmt.org/projects/zathura-pdf-poppler/"
arch="all"
license="Zlib"
depends="zathura"
makedepends="zathura-dev poppler-dev meson"
source="https://git.pwmt.org/pwmt/zathura-pdf-poppler/-/archive/$pkgver/zathura-pdf-poppler-$pkgver.tar.gz"
source="https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-$pkgver.tar.xz"

build() {
	abuild-meson -Db_lto=true . build
	meson compile -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
8aeebd0218e82888a1dd0449bcc3f3d7ef0086e99d42d5de38f21770d23c2035c3f9162ab13891cd622108775d13d11f3ac64b8699dbd17a052ad910da9c1db0  zathura-pdf-poppler-0.3.3.tar.xz
"
